Skip to content

Instantly share code, notes, and snippets.

@Greysayan
Greysayan / shelly_firmware_zip_method.txt
Last active October 4, 2026 13:38
Shelly Firmware ZIP Method – Official Update Server
# Shelly Firmware ZIP Method – Official Update Server
## Legal Notice / Disclaimer
This guide is provided for informational purposes only.
Use it at your own risk.
The author is not responsible for any damage, malfunctions, or data loss that may occur
as a result of following these instructions.
@mikaeldui
mikaeldui / UniFi-DNAT-DNS.md
Last active October 4, 2026 13:34
UniFi: DNAT to redirect DNS requests

UniFi: DNAT to redirect DNS requests

You have a local DNS server (e.g. your UniFi router) and want all your devices to use it, even though some don't care which server your router specifies in DHCP replies (e.g. IoT devices)? You can use DNAT to redirect all requests ment for external DNS servers to your local (or favourite remote) DNS server.

What's DNAT?

I guess you know what port forwarding is: you have a single public IP address shared by 10s of devices. In order for devices on the internet (e.g. your friends) to be able to access a device on your local network (e.g. your Jellyfin server) you need to tell your router to forward incoming traffic for a port to a local IP

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@loggedbytucker-blip
loggedbytucker-blip / pi-commands.md
Last active October 4, 2026 13:26
Raspberry Pi 5 media server — Immich + Jellyfin + Tailscale

Raspberry Pi 5 Media Server — Commands

Immich (photos) + Jellyfin (movies/TV) + Tailscale (access from anywhere). Commands only, in the order they're run in the video.

Tested August 2026 on:

Hardware Raspberry Pi 5, 8GB — CanaKit Starter Kit PRO

竟0

淨零碳規劃管理師-初級能力鑑定 題庫整理

更新日期 2026/07/13

說明

本文彙整了「淨零碳規劃管理師-初級能力鑑定」113-115 年度的 782 題考古題,內容僅供參考,考試命題不一定會相同,請考生留意。

  • 使用方法:Ctrl + F 直接輸入題目關鍵字搜尋即可
@Meterel
Meterel / DataDome captcha solver.user.js
Last active October 4, 2026 13:11
A Tampermonkey userscript that automatically solves the DataDome captcha by bypassing a security measure
// ==UserScript==
// @name DataDome captcha solver
// @namespace https://gist.github.com/Meterel/79a46f4a690d54e6cb33257092ef873b
// @version 1
// @description A Tampermonkey userscript that automatically solves the DataDome captcha by bypassing a security measure
// @author Meterel
// @updateURL https://gist.githubusercontent.com/Meterel/79a46f4a690d54e6cb33257092ef873b/raw/DataDome%2520captcha%2520solver.user.js
// @downloadURL https://gist.githubusercontent.com/Meterel/79a46f4a690d54e6cb33257092ef873b/raw/DataDome%2520captcha%2520solver.user.js
// @match https://geo.captcha-delivery.com/captcha/*
// @grant none
"""Route a user prompt to a model with Jev (DSPy 3.4.0, TypeSafe backend).
Jev describes the prompt; code picks the model. Every question asks one
property that a person could answer in a second, and names `prompt`, the
part of the state it judges. Weights and thresholds live in `route()`.
pip install "dspy[typesafe]==3.4.0"
export TYPESAFE_API_KEY=...
"""
@jboner
jboner / latency.txt
Last active October 4, 2026 13:05
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@ghuntley
ghuntley / jiti-kernel-diagram.md
Last active October 4, 2026 12:55
JITI kernel, OpenAI generations, and recovery ASCII diagrams

JITI: a CS50-style tour of a repairable Lisp kernel

The project keeps a running Lisp world alive while an outside controller asks an OpenAI model what to try next.

1. The big picture

                         "What should we try?"
                                  |
 v